package org.saber.geo.utils;


/**
 * 三角函数工具
 * @author saber
 *
 */
public class TriangleFunctionUtils {

	
	/**
	 * 获取斜边长
	 * @param oppositeSideLength
	 * @param angle
	 * @return
	 */
	public static double getHypotenuseLength (double oppositeSideLength,double angle) {
		
		double sinValue=Math.sin(Math.toRadians(angle));
		
		double hypotenuse=oppositeSideLength/sinValue;
		
		
		return hypotenuse;
	}
	
}
